﻿package com.lynn.salary.entity;

import java.util.Date;

public class SystemFile extends BaseEntity{

	private String id;
	private Date alterTime;
	private String creator;
	private String fileName;
	private String tag;
	private String fileType;
	private String fileSize;
	private Date newTime;
	private String savePath;
	private String whoAlter;

	/**
	 * 获取所有字段
	 * 
	 * @return
	 */
	public static String[] getFields() {

		return new String[] { "id", "alterTime", "creator", "fileName", "tag", "fileType", "fileSize", "newTime", "savePath",
				"whoAlter" };
	}

	/**
	 * 获取表名
	 * 
	 * @return
	 */
	public static String getTableName() {

		return "systemfile";
	}

	/**
	 * 获取主键名字
	 * 
	 * @return
	 */
	public static String getPkName() {

		return "id";
	}

	public static Object[] getFk(String field) {
		if (field.equals("creator")) {
			return new Object[] { User_.class, "id" };
		} else if (field.equals("whoAlter")) {
			return new Object[] { User_.class, "id" };
		} else
			return null;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getAlterTime() {
		return alterTime;
	}

	public void setAlterTime(Date alterTime) {
		this.alterTime = alterTime;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String fileTag) {
		this.tag = fileTag;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getFileSize() {
		return fileSize;
	}

	public void setFileSize(String fileSize) {
		this.fileSize = fileSize;
	}

	public Date getNewTime() {
		return newTime;
	}

	public void setNewTime(Date newTime) {
		this.newTime = newTime;
	}

	public String getSavePath() {
		return savePath;
	}

	public void setSavePath(String savePath) {
		this.savePath = savePath;
	}

	public String getWhoAlter() {
		return whoAlter;
	}

	public void setWhoAlter(String whoAlter) {
		this.whoAlter = whoAlter;
	}

}
